<?php
declare (strict_types=1);

namespace app\admin\validates;

use think\Validate;

/**
 * IntegralTask验证器
 */
class IntegralTaskCompleValidate extends Validate
{
    /**
     * 验证规则
     * @var array
     */
    protected $rule = [
        'id' => 'require|number',
        'user_id' => 'require|number',
        'task_id' => 'require|number',
        'type' => 'require|number',
        'content' => 'require|max:255',
    ];

    /**
     * 验证场景
     * @var array
     */
    protected $scene = [
        'add' => ['user_id','task_id','type','content'],
    ];


}